package com.kqb.pojo.dto;


import com.kqb.pojo.Permission;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Set;

/**
 * @author 杉果树皮
 * @date 2025/2/18 11:27
 * @description: 角色数据传输对象
 */
@Data
@ApiModel("角色传输")
public class RoleDto {

    @ApiModelProperty(value = "角色名称", required = true)
    private String name;
    @ApiModelProperty(value = "是否启用", required = true)
    private String isEnabled;
    @ApiModelProperty(value = "权限id列表", required = true)
    private Set<Integer> permissionIds;
    @ApiModelProperty(value = "权限列表", required = true)
    private Set<Permission> permissions;

    @ApiModelProperty("当前第页面，默认显示第1页")
    private Integer pageNum = 1;

    /**
     * 每页显示记录数 默认值为10
     */
    @ApiModelProperty("每页记录数，默认每页10条记录")
    private Integer pageSize = 10;


}
